<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<style>
	div.body-div {
		border-style: solid;
		border-width: 1px;
		padding-top: 10px;
		padding-left: 10px;
	}
</style>
<div class="body-div">
	<span class="title-span">编辑头像</span>
	<br />
	<br />
	<hr />
	<br />
	<img alt="头像"
		src="download2.jsp?flag=view&fileNumber=<s:property value="headImg"/>"
		width="75px" height="100px" />
	<br />
	<br />
	<form method="post" action="<%=basePath %>employee!hImg.do" enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this);">
		<input name="myfile" type="file" />
		<input type="submit" value="上传头像"></input>
	</form>
	<br />
	<span class="msg-span"><s:property value="msg" /> </span>
	<s:if test="msg != null">
		<br />
	</s:if>
	<form action="<%=basePath %>employee!hImg.do" method="post">
		<input type="hidden" name="fileNumber"
			value="<s:property value="fileNumber"/>" />
		<input type="submit" value="保存头像"></input>
	</form>
</div>